<!-- modals -->
<!-- Large modal -->
<div id="editModal" class="modal fade bs-example-modal-lg" tabindex="-1"
     role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">

            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabel">修改用户</h4>
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                </button>
            </div>

            <div class="modal-body">
                <form class="" action="#" method="post" novalidate>
                    <div class="item form-group">
                        <label class="col-form-label col-md-3 col-sm-3 label-align"
                               for="userNameForAdd"  >
                            User Name
                        </label>
                        <div class="col-md-6 col-sm-6 ">
                            <input type="text" id="userNameForAdd" placeholder="请输入用户名"
                                   class="form-control" v-model:value="user.userName" readonly>
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="col-form-label col-md-3 col-sm-3 label-align"
                               for="emailForAdd">
                            Email
                        </label>
                        <div class="col-md-6 col-sm-6 ">
                            <input type="text" id="emailForAdd" placeholder="请输入邮箱"
                                   class="form-control" v-model:value="user.email" readonly>
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="col-form-label col-md-3 col-sm-3 label-align"
                               for="passwordForEdit">
                            Password
                        </label>
                        <div class="col-md-6 col-sm-6 ">
                            <input type="password" id="passwordForEdit" placeholder="请输入密码"
                                   class="form-control" v-model:value="user.password" readonly>
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="col-form-label col-md-3 col-sm-3 label-align" >
                            Roles
                        </label>
                        <div class="col-md-6 col-sm-6 ">
                            <span v-for="(role, index) in allRoles">
                                <input type="checkbox" :value="role.id"
                                       v-model:value="user.roles"/> {{role.roleName}}
                            </span>
                        </div>
                    </div>
                </form>
            </div>

            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
                <button type="button" class="btn btn-primary" data-dismiss="modal"
                        @click="updateModule()">Save changes</button>
            </div>
        </div>
    </div>
</div>